﻿using System;
using System.Collections.Generic;

using SBPweb.Communication.Shared.Library;
using SBPweb.Communication.Shared.Library.Contacts;

using SBPweb.Communication.Client.Library.Xmpp.Connections;
using SBPweb.Communication.Shared.Library.Connections;

namespace SBPweb.Communication.Client.Library.Xmpp.Contacts
{

    public partial class ContactManager : ContactManagerBase
    {

        #region Protected fields

        protected ConnectionManager connections;

        #endregion

        #region Constructor logic

        internal ContactManager(MessengerBase messenger)
            : base(messenger)
        {
        }

        internal ContactManager(MessengerBase messenger, ConnectionManager connectionManager)
            : base(messenger)
        {
            this.connections = connectionManager;
        }

        #endregion

        #region Methods

        #region Connection

        private void OnClientConnecting(object sender, EventArgs e)
        {
            Myself = new Contact(connections.localJid);
        }

        private void OnClientConnected(object sender, EventArgs e)
        {
        }

        #endregion

        #endregion

    }

}